﻿using Dyao.Book.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Dyao.Book.Repository
{
    public class OperationLogEntityTypeConfiguration : IEntityTypeConfiguration<OperationLogEntity>
    {
        public void Configure(EntityTypeBuilder<OperationLogEntity> builder)
        {
            builder.Property(a => a.OperationType).HasEnumToStringConversion();
        }
    }
}
